Skip to content

Run page: unfinished fix rounds with Resume, missing codegen values; codegen environment settings - #242

Merged
nambok merged 3 commits into
mainfrom
fix/plan-coverage-and-round-budgets
Oct 27, 2026
Merged

nambok merged 3 commits into
mainfrom
fix/plan-coverage-and-round-budgets

Conversation

@nambok

@nambok nambok commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This is the dashboard side of CoderHelm/coderhelm-platform#331. The run page now shows two new states plainly:

  • The PR is open but the last fix round didn't finish. Before, this showed as "failed". Now the run page explains it and offers Resume.
  • The PR didn't open because a code generator needed public values the repository doesn't set. The run page names those values. Admins get a page to set a repository's codegen environment.

Changes

  • Run page, unfinished round: a completed run with round_incomplete shows an attention card:
    • title: "Pull request open; the last fix round didn't finish"
    • the reason
    • a note that the pull request is unchanged, and where the round's work is saved (its coderhelm-wip/… branch)
    • Resume, which calls the existing POST /api/runs/{id}/retry; the gateway resumes the round from its WIP branch
    • Open pull request
      The header badge reads "PR open, fix unfinished". Viewers see the state but get no button.
  • Run page, missing codegen values: a failed run with codegen_env_missing names the missing values and says where to set them. Set the values links to the repository's codegen environment with the names pre-filled. Retry is also offered.
  • Settings, Repositories: each enabled repository gets a Codegen environment link (admins). The new page /settings/repos/codegen?repo=…:
    • edits the repository's public values
    • warns not to put secrets there
    • shows the gateway's reason when a name or value looks like a credential
  • openapi-fields.ts is regenerated from coderhelm-platform@2be1858, the platform PR's head. Regenerate at main once that PR merges.

Verification

  • npm run typecheck, npm run lint, npm run check:openapi (against 2be1858) and npm run build pass.
  • New e2e specs:
    • e2e/round-incomplete.spec.ts: 3 tests
    • e2e/codegen-env.spec.ts: 5 tests
      Together they cover desktop 1440 and phone 390, Resume calling retry, the pre-filled names, saving, refusing a secret, the link from the repositories list, and members not getting the page.
  • e2e/close-runs.spec.ts and e2e/run-questions.spec.ts still pass. 28 tests in total, rebased on main.
  • I reviewed the 1440 and 390 screenshots.
  • No names grep: prints nothing.

@nambok
nambok force-pushed the fix/plan-coverage-and-round-budgets branch from baae187 to 19033c7 Compare October 27, 2026 16:10
@nambok nambok changed the title Run page: an open PR whose last fix round didn't finish says so, with Resume Run page: unfinished fix rounds with Resume, missing codegen values; codegen environment settings Oct 27, 2026
… Resume

When the gateway reports round_incomplete on a finished run, the run page
shows "Pull request open; the last fix round didn't finish", why, and the
commits the round pushed, with a Resume button that calls the run's retry
path (the gateway resumes the round on the same run). The header badge reads
"PR open, fix unfinished" instead of Done. Viewers see the state without
the button.

openapi-fields regenerated from CoderHelm/coderhelm-platform@ce18d85
(Run.round_incomplete, RoundIncomplete, PushedCommit). New e2e spec with
1440 and 390 screenshots.
…ording

- Settings, Repositories: each repository links to its Codegen environment
  (admins only): the public values its code generators read in the
  sandbox, with a warning never to put secrets there (the gateway refuses
  names and values that look like credentials, and the page shows why).
- A run stopped because a generator needed public values the repository
  doesn't set names them, says where to set them, and links there with the
  names pre-filled; Retry after.
- The unfinished-round card says the pull request is unchanged and where
  the round's work is saved (its coderhelm-wip branch), and that Resume
  lands it as one commit.

openapi-fields regenerated from CoderHelm/coderhelm-platform@123a42c
(Run.codegen_env_missing, RoundIncomplete.wip_branch). New e2e spec
codegen-env.spec.ts with 1440 and 390 screenshots.
@nambok
nambok force-pushed the fix/plan-coverage-and-round-budgets branch from fa28892 to 4052023 Compare October 27, 2026 19:58
@nambok
nambok merged commit f70040f into main Oct 27, 2026
5 checks passed
@nambok
nambok deleted the fix/plan-coverage-and-round-budgets branch October 27, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant